// 定义对话框基础样式
.dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 20px;
  width: 400px;

  // 对话框标题样式
  .dialog-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
  }

  // 对话框内容样式
  .dialog-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  // 对话框底部按钮样式
  .dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    .dialog-button {
      padding: 8px 16px;
      border-radius: 4px;
      font-size: 14px;
      cursor: pointer;

      &.confirm {
        background-color: #409eff;
        color: white;
        border: none;

        &:hover {
          background-color: #66b1ff;
        }
      }

      &.cancel {
        background-color: #f5f7fa;
        color: #606266;
        border: 1px solid #dcdfe6;

        &:hover {
          color: #409eff;
          border-color: #c6e2ff;
          background-color: #ecf5ff;
        }
      }
    }
  }
}

// 遮罩层样式
.dialog-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
